<%@ include file="../system/HeaderStrutsForm.jsp" %>
<html>
  <head>

    <bean:message key="page.css"/>
    <bean:message key="page.script"/>
  </head>
  <center>
    <body>
      <table class="mainTable" style='width:100%;'>
        <tr>
          <td>
            <html:form 
                action="Geral/AlterarSenhaForm.do"
                method="POST"
                onsubmit="return mudarSenha();"
                scope="session"
                styleClass="baseForm"
                target="_self">


              <table class="bannerTable" style='width:100%;'>
                <tr>
                  <td class=tableHeader>
                    Alterar Senha
                  </td>
                </tr>
              </table>
              <table class="messageTable" style='width:100%;'>
                <tr>
                  <td class="messageHeader">
                    <bean:message key="div.campos*"/>
                    <html:errors/>
                  </td>
                </tr>
              </table>
              <table class="itemTable" style='width:100%;'>
                <html:hidden 
                    property="usur_login"
                    value="<%= (String) session.getAttribute("j_username")%>"/>
                <tr>
                  <td class="formLabel">
                    <span class="spamFormLabel" >
                      <script>
                        function mudarSenha(){
                          if (travaSubmit==13){
                            travaSubmit = 0;
                            return false;
                          }
                        }
                      </script>
                    </td>
                  </tr>
                  <tr>
                    <td class="formLabel">
                      <span class="spamFormLabel" >
                        Nome
                      </span>
                    </td>
                    <td class="formField">
                      <html:text 
                          property="usur_nome"
                          styleClass="baseField"
                          title="Nome"
                          readonly="true"
                          size="25"
                          maxlength="50"/>
                    </td>
                  </tr>
                  <tr>
                    <td class="formLabel">
                      <span class="spamFormLabel" >
                        Senha
                      </span>
                    </td>
                    <td class="formField">
                      <html:password 
                          property="usur_senha"
                          styleClass="baseField"
                          size="12"
                          maxlength="12"/>
                    </td>
                  </tr>
                  <tr>
                    <td class="formLabel">
                      <span class="spamFormLabel" >
                        Nova Senha
                      </span>
                    </td>
                    <td class="formField">
                      <html:password 
                          property="nova_senha"
                          styleClass="baseField"
                          size="12"
                          maxlength="12"/>
                    </td>
                  </tr>
                  <tr>
                    <td class="formLabel">
                      <span class="spamFormLabel" >
                        Repita a Nova Senha
                      </span>
                    </td>
                    <td class="formField">
                      <html:password 
                          property="repetir_nova_senha"
                          styleClass="baseField"
                          size="12"
                          maxlength="12"/>
                    </td>
                  </tr>
                </table>
                <table class="buttonTable" style='width:100%;'>
                  <tr>
                    <td class="buttonItem">
                      <html:submit 
                          value="Salvar"
                          styleClass="baseButton"
                          property="salvar_action">


                      </html:submit>
                      <html:submit 
                          accesskey="r"
                          styleClass="baseButton"
                          property="resetfull_action">


                        <bean:message 
                            bundle="ApplicationResources"
                            key="jsp.reset"/>
                      </html:submit>
                      <html:button 
                          accesskey="c"
                          onclick="javascript:window.close();"
                          styleClass="baseButton"
                          property="close_action">


                        <bean:message 
                            bundle="ApplicationResources"
                            key="jsp.close"/>
                      </html:button>
                      <html:submit 
                          value="carregar"
                          style=" visibility: hidden; "
                          styleClass="baseButton"
                          property="carregar_action">


                      </html:submit>
                    </td>
                  </tr>
                </table>
              </html:form>

            </td>
          </tr>
        </table>
      </body>
    </center>
  </html>
